package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class InternalPage extends AnyPage {
	
	@FindBy(xpath = "//section/nav")
	public WebElement mainNavigationPanel;
	
	@FindBy(xpath = "//nav/ul/li[1]/a")
	public WebElement HomePageLink;
	
	@FindBy(xpath = "//nav/ul/li[2]/a")
	public WebElement menuUserProfileLink;
	
	@FindBy(xpath = "//nav/ul/li[3]/a")
	public WebElement UserManagementLink;
	
	@FindBy(xpath = "//nav/ul/li[4]/a")
	public WebElement menuLogoutLink;
	
	public boolean isOnThisPage() {
		return mainNavigationPanel.isDisplayed();
	}

}
